"""
此模块存放所有视图路由
"""
import logging

from flask import current_app
from flask import render_template
from flask import session
from flask_script import Manager
from flask_migrate import Migrate, MigrateCommand

from info import create_app, db
from . import index_blu


@index_blu.route('/')
def index():

    # logging.debug("测试debug")
    # logging.warning("测试warning")
    # logging.error("测试error")
    # logging.fatal("测试fatal")
    # current_app.logger.error('debug')

    return render_template('news/index.html')



@index_blu.route('/favicon.ico')
def favicon():
    return current_app.send_static_file('news/favicon.ico')